package com.sunxueqi.project.home.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sunxueqi.common.constant.StatusConstants;
import com.sunxueqi.project.home.dao.DashboardMapper;
import com.sunxueqi.project.home.service.IDashboardService;

@Service
public class DashboardServiceImpl implements IDashboardService{

	@Autowired
	private DashboardMapper dashboardMapper;
	
	@Override
	public Map<String, Long> getPanelGroupData() {
		Map<String, Long> resultMap = new HashMap<String, Long>();
		Long visitorCount = dashboardMapper.getVisitorCount(StatusConstants.NORMAL);
		resultMap.put("visitorCount", visitorCount);
		return resultMap;
	}

}
